from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination


class ArticlePagination(LimitOffsetPagination):
    # 默认每页显示的个数
    default_limit = 2
    # 最多能显示多少个
    max_limit = 100

# class ArticlePagination(PageNumberPagination):
#     # 默认每页显示的个数
#     page_size = 2
#     # 显示分页的最多页数，默认为None
#     page_size_query_param = 'page_size'
#     # 最多能显示多少个
#     max_page_size = 100

